<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<script type="text/javascript" src="../../js/arealink.js"></script>
<script type="text/javascript">
<!--
document.form3.button4.disabled = true;

function gotoSearch() {
	var berthNums = document.form3.BerthNum.value;
	var index = berthNums.indexOf("-");
	var keyword = document.form3.dockKeyWord.value;

	if (keyword == "") {
		alert("请输入关键字！");
		return false;
	}

	if (berthNums != null) {
		var min = berthNums.substring(0,index);
		var max = berthNums.substring(index);
		max = max.replace("-","");
	
		document.form3.minBerthNum.value = min;
		document.form3.maxBerthNum.value = max;
	}
	//alert("min=" + min + "; max=" + max);
	document.form3.submit();
}

function gotoPage(currentPage) {
	document.newsactivityForm.onsubmit = "return false;";
	document.pageSelectForm.currentPage.value = currentPage;
	document.pageSelectForm.submit();
}

function gotoPage2() {
	var i = document.newsactivityForm.select6.value;
	document.pageSelectForm.currentPage.value = i;
	document.pageSelectForm.submit();
}
//-->
</script>
<div class="search_bar">
<form id="pageSelect" name="pageSelectForm" method="post" action="/chinayachting/frontend/club/readDockyacht.do">
    <input name="currentPage" type="hidden" value="">
</form>
      <form id="form3" name="form3" method="post" action="/chinayachting/frontend/club/readDockyacht.do" onsubmit="return gotoSearch();">
        	<input name="dockKeyWord" type="text" id="textfield4" value="${dockForm.dockKeyWord}" class="ss_keyword" />
            <input type="button" name="button3" id="button3" class="btn_search" value="搜索" onclick="gotoSearch();"/>
            <input type="button" name="button4" id="button4" class="btn_gjsearch" value="" style="color:#CBCBCB" onclick=""/>
            <input type="hidden" name="minBerthNum" value="${dockForm.minBerthNum}"/>
            <input type="hidden" name="maxBerthNum" value="${dockForm.maxBerthNum}"/>
            <input type="hidden" name="channelId" value="${dockForm.channelId}"/>
            <!--按地区_start-->
            <div id="test5" class="dropdown" tabIndex="5">
                <select name="dockArea">
                    <option value="">按地区</option>
                    <option value="^">不限</option>
                    <% Map cityList = CodeMap.city; pageContext.setAttribute("cityLs",cityList);  %>
		              <logic:iterate id="citys" name="cityLs">
		              <option value="${citys.key}">${citys.value}</option>
		              </logic:iterate>
                </select>
            </div>
            <!--按地区_end-->
            <!--按泊位数量_start-->
            <div id="test4" class="dropdown" tabIndex="4">
                <select name="BerthNum">
                    <option value="">按泊位数量</option>
                    <option value="0-9999">不限</option>
                    <option value="1-50">50</option>
                    <option value="50-100">50-100</option>
                    <option value="100-200">100-200</option>
                    <option value="200-300">200-300</option>
                    <option value="300-500">300-500</option>
                    <option value="500-1000">500-1000</option>
                    <option value="1000-9999">1000以上</option>
                </select>
            </div>
            <!--按泊位数量_end-->
            <!--按码头性质_start-->
            <div id="test11" class="dropdown" tabIndex="11">
                <select name="berthType">
                    <option value="">按码头性质</option>
                    <option value="0">不限</option>
                    <option value="1">湖</option>
                    <option value="2">海</option>
                </select>
            </div>
            <!--按码头性质_end-->
            <div id="pagefy">${dockForm.selectionStr}</div>
      </form>
    </div>